package com.khyr.controller;

/**
 * @author ：lyk
 * @date ：Created in 2025/3/14 17:00
 * @description：
 * @modified By：
 * @version:
 */

import com.khyr.Vo.QueryWorkloadStatBackVo;
import com.khyr.Vo.RequestQueryWorkloadVo;
import com.khyr.entity.HisRegistration;
import com.khyr.service.WorkloadService;
import com.khyr.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/accountant/workload")
public class WorkloadController {
    @Autowired
    private WorkloadService workloadService;
    @RequestMapping("/queryWorkload")
    public R<List<HisRegistration>> queryWorkload(@RequestBody RequestQueryWorkloadVo requestQueryWorkloadVo){
        return workloadService.workloadController(requestQueryWorkloadVo);
    }
    @RequestMapping("/queryWorkloadStat")
    public R<List<QueryWorkloadStatBackVo>> queryWorkloadStat(@RequestBody RequestQueryWorkloadVo requestQueryWorkloadVo){
        return workloadService.queryWorkloadStat(requestQueryWorkloadVo);
    }
}
